package com.freewater.springboot.demo.ioc.beanpostprocessor;

import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.BeanNameAware;

@Slf4j
@Setter
public class BeanA implements BeanNameAware {

    private String beanName;

    public void init() {
        System.out.println("=====>> " + this.beanName + " custom initializing");
    }

    @Override
    public String toString() {
        return "BeanA{" +
                "beanName='" + beanName + '\'' +
                '}';
    }
}
